<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		>
	<f:loadBundle basename="bundle.register" var="registerBundle"/>
	<ui:decorate template="/facelets/template/mainTemplate.xhtml">
		<ui:define name="title">#{registerBundle.title}</ui:define>
		<ui:define name="center">
			<rich:panel id="left" styleClass="left"/>
			<rich:panel id="content" styleClass="content">
				<a4j:form id="registerForm">
					<rich:panel id="registerPanel" styleClass="loginPanel">
						<f:facet name="header">
							<h:outputText value="#{registerBundle.title}"/>
						</f:facet>
						<h:panelGrid columns="2">
							<h:outputLabel for="login" value="#{registerBundle.user}"/>
							<h:inputText id="login" value="#{userBean.name}" styleClass="sizeCopmonent"
										 maxlength="100"/>
							<h:outputLabel for="password" value="#{registerBundle.password}"/>
							<h:inputSecret id="password" value="#{userBean.password}" styleClass="sizeCopmonent"
										   maxlength="100"/>
							<h:outputLabel for="password2" value="#{registerBundle.password2}"/>
							<h:inputSecret id="password2" value="#{userBean.password2}" styleClass="sizeCopmonent"
										   maxlength="100"/>
							<h:commandButton type="submit" action="#{userBean.doRegister}"
											 value="#{registerBundle.register}"/>
							<h:commandButton type="reset" value="#{registerBundle.reset}"/>
						</h:panelGrid>
					</rich:panel>
				</a4j:form>
			</rich:panel>
		</ui:define>
	</ui:decorate>
</f:view>